/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

/**
 *
 * @author massaer
 */
public class PanelAddConges extends javax.swing.JPanel {

    /**
     * Creates new form PanelAddConges
     */
	
	 public PanelAddConges() {
	       
	    }
	    
    public PanelAddConges(JButton b, JButton b2) {
        initComponents(b,b2);
    }
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    public void initComponents(JButton boutonValider, JButton boutonAnnuler) {

        calendarDateDeb = new com.toedter.calendar.JDateChooser();
        labelDateDebu = new javax.swing.JLabel();
        labelDateFin = new javax.swing.JLabel();
        labelDateFin.setForeground(new java.awt.Color(255, 255, 255));
		labelDateDebu.setForeground(new java.awt.Color(255, 255, 255));
        calendarDateFin = new com.toedter.calendar.JDateChooser();
        labelMotif = new javax.swing.JLabel();
        labelMotif.setForeground(new java.awt.Color(255, 255, 255));
       // boutonValider = new javax.swing.JButton();
        boutonEffacer = new javax.swing.JButton();
        //boutonAnnuler = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();

        setBackground(new java.awt.Color(128, 130, 133));
        setMaximumSize(new java.awt.Dimension(1050, 440));
        setMinimumSize(new java.awt.Dimension(1050, 440));
        setPreferredSize(new java.awt.Dimension(1050, 440));

        labelDateDebu.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        labelDateDebu.setText("Date début");

        labelDateFin.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        labelDateFin.setText("Date fin");

        labelMotif.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        labelMotif.setText("MOTIF");

        boutonValider.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        boutonValider.setText("valider");

        boutonEffacer.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        boutonEffacer.setText("effacer");
        boutonEffacer.addActionListener(new ActionListener() {
       		
       	   	public void actionPerformed(ActionEvent arg0) {
       	   	jTextArea1.setText("");
       	    calendarDateDeb.setDate(null);
       	    calendarDateFin.setDate(null);
       	   	}
       	 });

        boutonAnnuler.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        boutonAnnuler.setText("annuler");

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane2.setViewportView(jTextArea1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(149, Short.MAX_VALUE)
                .addComponent(labelMotif, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(57, 57, 57)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(62, 62, 62)
                        .addComponent(boutonValider)
                        .addGap(63, 63, 63)
                        .addComponent(boutonEffacer)
                        .addGap(63, 63, 63)
                        .addComponent(boutonAnnuler))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 506, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(labelDateDebu, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(calendarDateDeb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(labelDateFin, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(calendarDateFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(6, 6, 6)))
                .addContainerGap(288, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelDateDebu)
                    .addComponent(calendarDateDeb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelDateFin)
                    .addComponent(calendarDateFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(labelMotif)
                        .addGap(83, 83, 83)))
                .addGap(41, 41, 41)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boutonValider)
                    .addComponent(boutonEffacer)
                    .addComponent(boutonAnnuler))
                .addGap(31, 31, 31))
        );
    }// </editor-fold>                        
    // Variables declaration - do not modify                     
   // private javax.swing.JButton boutonAnnuler;
    private javax.swing.JButton boutonEffacer;
   // private javax.swing.JButton boutonValider;
    private com.toedter.calendar.JDateChooser calendarDateDeb;
    private com.toedter.calendar.JDateChooser calendarDateFin;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JLabel labelDateDebu;
    private javax.swing.JLabel labelDateFin;
    private javax.swing.JLabel labelMotif;
    // End of variables declaration      

	public javax.swing.JButton getBoutonEffacer() {
		return boutonEffacer;
	}

	public void setBoutonEffacer(javax.swing.JButton boutonEffacer) {
		this.boutonEffacer = boutonEffacer;
	}

	public com.toedter.calendar.JDateChooser getCalendarDateDeb() {
		return calendarDateDeb;
	}

	public void setCalendarDateDeb(com.toedter.calendar.JDateChooser calendarDateDeb) {
		this.calendarDateDeb = calendarDateDeb;
	}

	public com.toedter.calendar.JDateChooser getCalendarDateFin() {
		return calendarDateFin;
	}

	public void setCalendarDateFin(com.toedter.calendar.JDateChooser calendarDateFin) {
		this.calendarDateFin = calendarDateFin;
	}

	public javax.swing.JScrollPane getjScrollPane2() {
		return jScrollPane2;
	}

	public void setjScrollPane2(javax.swing.JScrollPane jScrollPane2) {
		this.jScrollPane2 = jScrollPane2;
	}

	public javax.swing.JTextArea getjTextArea1() {
		return jTextArea1;
	}

	public void setjTextArea1(javax.swing.JTextArea jTextArea1) {
		this.jTextArea1 = jTextArea1;
	}

	public javax.swing.JLabel getLabelDateDebu() {
		return labelDateDebu;
	}

	public void setLabelDateDebu(javax.swing.JLabel labelDateDebu) {
		this.labelDateDebu = labelDateDebu;
	}

	public javax.swing.JLabel getLabelDateFin() {
		return labelDateFin;
	}

	public void setLabelDateFin(javax.swing.JLabel labelDateFin) {
		this.labelDateFin = labelDateFin;
	}

	public javax.swing.JLabel getLabelMotif() {
		return labelMotif;
	}

	public void setLabelMotif(javax.swing.JLabel labelMotif) {
		this.labelMotif = labelMotif;
	}
    
}
